package com.fxp.project.jiuselu.web.models.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fxp.project.jiuselu.web.models.common.entity.JslBackendConfig;
import com.fxp.project.jiuselu.web.models.common.vo.CommissionVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 配置信息表 Mapper 接口
 * </p>
 *
 * @author M_
 * @since 2021-12-28
 */
public interface JslBackendConfigMapper extends BaseMapper<JslBackendConfig> {
    /**
     * 通过incType 传
     * @param incType
     * @return
     */
    List<JslBackendConfig> selectByIncType(@Param("incType")String incType) ;

    @Select("select id as id,first_commission_ratio as first , second_commission_ratio as second , customer_commission_ratio as customer  from jsl_commission_ratio where id =1 ")
    CommissionVo findOne();
}
